Rails.application.routes.draw do
  # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
  # root to: 'app/homes#index'
  # match "*path", to: "app/homes#index", format: false, via: :get
  root to: 'admin/homes#index'
  match "*path", to: "admin/homes#index", format: false, via: :get
  
  namespace :admin do
    resources :homes, only: [:index]
  end

  namespace :app do
    resources :homes, only: [:index]
  end

end
